.app {
  text-align: center;
}

.app-header {
  background-color: #282c34;
  padding: 20px;
  color: white;
}

.app-link {
  color: #61dafb;
}

/* 布局样式 */
.ant-layout {
  background: #f0f2f5;
}

.ant-layout-sider {
  background: #001529;
}

.ant-layout-header {
  background: #fff;
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

.ant-layout-content {
  background: #fff;
  margin: 24px;
  padding: 24px;
  min-height: 280px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 聊天页面样式 */
.chat-container {
  height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #fafafa;
  border-radius: 6px;
  margin-bottom: 16px;
}

.chat-input-container {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
}

.chat-send-button {
  height: 40px;
  width: 80px;
}

/* 智能体页面样式 */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 16px 0;
}

.agent-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.agent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.agent-icon {
  font-size: 32px;
  margin-bottom: 12px;
  color: #1890ff;
}

.agent-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #262626;
}

.agent-description {
  color: #8c8c8c;
  margin-bottom: 12px;
  line-height: 1.5;
}

.agent-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
}

.agent-capability {
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: #666;
}

/* 工具页面样式 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 16px 0;
}

.tool-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tool-icon {
  font-size: 24px;
  margin-bottom: 8px;
  color: #52c41a;
}

.tool-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #262626;
}

.tool-description {
  color: #8c8c8c;
  font-size: 14px;
  line-height: 1.4;
}

.tool-category {
  background: #e6f7ff;
  color: #1890ff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-top: 8px;
  display: inline-block;
}

/* 设置页面样式 */
.settings-container {
  max-width: 600px;
  margin: 0 auto;
}

.settings-section {
  margin-bottom: 32px;
}

.settings-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #262626;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ant-layout-content {
    margin: 12px;
    padding: 16px;
  }
  
  .agents-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .chat-input-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .chat-send-button {
    width: 100%;
  }
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
} 